package com.zkt.recommend.domain.convert;

import com.zkt.recommend.domain.entity.RecommendUserPortraitBO;
import com.zkt.recommend.infra.basic.entity.RecommendUserPortrait;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2024/10/4
 * @description 用户做题记录的实体类型转换器
 **/

@Mapper
public interface RecommendUserPortraitConverter {
	
	RecommendUserPortraitConverter INSTANCE = Mappers.getMapper(RecommendUserPortraitConverter.class);
	
	RecommendUserPortrait convertBoToUserPortrait(RecommendUserPortraitBO recommendUserPortraitBO);
	
	List<RecommendUserPortraitBO> convertUserPortraitToBoList(List<RecommendUserPortrait> recommendUserPortraitList);
	
}
